package com.acxy.ants.core;

import com.acxy.ants.common.enums.ViewType;

/**
 * @author MrShun
 * @version 1.0
 * @Date 2017-04-27
 */
public interface Const {

    String ANTS_VERSION = "3.0";    //版本

    String DEFAULT_BASE_UPLOAD_PATH = "upload"; //上传目录

    String DEFAULT_BASE_DOWNLOAD_PATH = "download"; //下载目录

    String DEFAULT_ENCODING = "UTF-8";  //编码集

    boolean DEFAULT_DEBUG = false;  //是否打开调试

    String DEFAULT_URL_PARA_SEPARATOR = "-"; //参数分隔符

    ViewType DEFAULT_VIEW_TYPE = ViewType.JSP;

    String DEFAULT_VIEW_SUFFIX = ".html";   //模板视图后缀

    int DEFAULT_MAX_POST_SIZE = 1024 * 1024 * 10;            // 允许文件上传大小

    int DEFAULT_TEMPLATE_UPDATE_DELAY = 3600;    // 模板更新时间


    String DEFAULT_TOKEN_NAME = "_ants_token"; //TOKEN名称

    int DEFAULT_SECONDS_OF_TOKEN_TIME_OUT = 900;            // 900 seconds ---> 15 minutes

    int MIN_SECONDS_OF_TOKEN_TIME_OUT = 300;                // 300 seconds ---> 5 minutes

    String DEFAULT_CACHE_NAME = "defaultCache"; //默认ehcache缓存组
}
